﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace Utils.Wpf.Converters
{
	public class IsGreaterThanConverter : IValueConverter
	{
		public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
		{
			int intValue = (int)value;
			int compareToValue = Int32.Parse(parameter.ToString());

			return intValue > compareToValue;
		}

		public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
		{
			throw new NotImplementedException();
		}
	}
}